package demo2;

public class func2 {
    public static void main(String[] args) {
        Thread t2 = new Thread(){
            @Override
            public void run() {
                System.out.println("我是继承Thread的匿名内部类写法");
            }
        };
        t2.start();
    }
}
